home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _62544BA8B55048578C2B25186D0D0E11 < prev    next >
Encoding:
Text File  |  2002-06-05  |  9.1 KB  |  460 lines

  1. {
  2.     assetGlobalDef 
  3.     {
  4.         defaultFont                "hud"
  5.  
  6.         cursor "gfx/menus/cursor/cursor"            // cursor    
  7.     
  8.         fadeClamp 1.0                            // sets the fadeup alpha
  9.         fadeCycle 1                                // how often fade happens in milliseconds
  10.         fadeAmount 0.1                            // amount to adjust alpha per cycle
  11.  
  12.         shadowColor 0.1 0.1 0.1 0.25            // shadow color
  13.  
  14.         shader    gfx/menus/backdrop/menu_multiplayer_joinserver        // precache image
  15.     }
  16.                                
  17.     menuDef 
  18.     {
  19.            name                "main"
  20.         background            "gfx/menus/backdrop/menu_multiplayer_back"  
  21.            fullScreen            MENU_TRUE                
  22.         rect                0 0 640 480                // Size and position of the menu
  23.            visible                MENU_TRUE                // Visible on open
  24.         focusColor            1 .75 0 1                // Menu focus color for text and items
  25.         tooltipbackcolor    .49 .56 .27 1
  26.         tooltipforecolor    .12 .14 .08 1
  27.         tooltipscale        .43
  28.         tooltipfont            "hud"
  29.         tooltipdelay        500
  30.                             
  31.         onOpen 
  32.         { 
  33.             open setup_menu;
  34.  
  35.             show options_glow;
  36.             hide options_button;
  37.  
  38.             playlooped "music/shop/shopa_slow.mp3"
  39.         }
  40.             
  41.         onESC 
  42.         { 
  43.             open quit_popmenu;
  44.         }
  45.  
  46.         //////////////////////////////////////////////////////
  47.         // Precache the player model
  48.         //////////////////////////////////////////////////////
  49.  
  50.         itemDef 
  51.         {
  52.             name        modelselection
  53.             ownerdraw    UI_PLAYERMODEL
  54.             rect        0 0 0 0 
  55.             style        WINDOW_STYLE_EMPTY
  56.             visible        1
  57.             decoration 
  58.         }
  59.  
  60.         //////////////////////////////////////////////////////
  61.         // Play
  62.         //////////////////////////////////////////////////////
  63.  
  64.         itemDef
  65.         {
  66.             name        window
  67.             style        WINDOW_STYLE_FILLED
  68.             rect        74 393 67 47
  69.             background    "gfx/menus/icons/icon_join_server_mp.png"
  70.             backcolor    .20 .25 .11 1
  71.             visible        MENU_TRUE
  72.             decoration
  73.         }
  74.  
  75.         itemDef
  76.         {
  77.             name        play_glow
  78.             group        main_glow_group
  79.             style        WINDOW_STYLE_FILLED
  80.             rect        74 393 67 47
  81.             background    "gfx/menus/icons/icon_join_server_glow_mp.png"
  82.             backcolor    .72 .96 .098 1
  83.             visible        MENU_FALSE
  84.             decoration
  85.         }
  86.  
  87.         itemDef
  88.         {
  89.             name        play_button
  90.             group        main_button_group
  91.             style        WINDOW_STYLE_EMPTY
  92.             rect        74 392 67 47
  93.             type        ITEM_TYPE_BUTTON
  94.             visible        MENU_TRUE
  95.             tooltip        "Join Server"
  96.  
  97.             mouseEnter
  98.             {
  99.                 play "sound/misc/menus/hilite1.wav" ; 
  100.  
  101.                 show play_glow;
  102.             }
  103.             mouseExit
  104.             {
  105.                 hide play_glow;
  106.             }
  107.             action
  108.             {
  109.                 play "sound/misc/menus/select.wav" ; 
  110.  
  111.                 setmenubackground    "gfx/menus/backdrop/menu_multiplayer_joinserver"  
  112.  
  113.                 uiScript VerifyNet;
  114.  
  115.                 show main_button_group;                
  116.                 hide play_button;                
  117.  
  118.                 hide main_glow_group;
  119.                 show play_glow;
  120.  
  121.                 close mods_menu;
  122.                 close setup_menu;
  123.                 close createserver_menu;
  124.                 close violence_menu;
  125.                 close violence_options_menu;
  126.                 open joinserver;
  127.             }
  128.         }
  129.  
  130.         //////////////////////////////////////////////////////
  131.         // Create Server
  132.         //////////////////////////////////////////////////////
  133.  
  134.         itemDef
  135.         {
  136.             name        window
  137.             style        WINDOW_STYLE_FILLED
  138.             rect        145 392 67 47
  139.             background    "gfx/menus/icons/icon_create_server_mp"
  140.             backcolor    .20 .25 .11 1
  141.             visible        MENU_TRUE
  142.             decoration
  143.         }
  144.  
  145.         itemDef
  146.         {
  147.             name        createserver_glow
  148.             group        main_glow_group
  149.             style        WINDOW_STYLE_FILLED
  150.             rect        145 392 67 47
  151.             background    "gfx/menus/icons/icon_create_server_glow_mp"
  152.             backcolor    .72 .96 .098 1
  153.             visible        MENU_FALSE
  154.             decoration
  155.         }
  156.  
  157.         itemDef
  158.         {
  159.             name        createserver_button
  160.             group        main_button_group
  161.             style        WINDOW_STYLE_EMPTY
  162.             rect        145 392 67 47
  163.             type        ITEM_TYPE_BUTTON
  164.             visible        MENU_TRUE
  165.             tooltip        "Create Server"
  166.  
  167.             mouseEnter
  168.             {
  169.                 play "sound/misc/menus/hilite1.wav" ; 
  170.  
  171.                 show createserver_glow;
  172.             }
  173.             mouseExit
  174.             {
  175.                 hide createserver_glow;
  176.             }
  177.             action
  178.             {
  179.                 play "sound/misc/menus/select.wav" ; 
  180.  
  181.                 setmenubackground    "gfx/menus/backdrop/menu_multiplayer_back"  
  182.  
  183.                 show main_button_group;                
  184.                 hide createserver_button;
  185.  
  186.                 hide main_glow_group;
  187.                 show createserver_glow;
  188.  
  189.                 close mods_menu;
  190.                 close joinserver;
  191.                 close setup_menu;
  192.                 close violence_menu;
  193.                 close violence_options_menu;
  194.                 open createserver_menu;
  195.             }
  196.         }
  197.  
  198.         //////////////////////////////////////////////////////
  199.         // Options
  200.         //////////////////////////////////////////////////////
  201.  
  202.         itemDef
  203.         {
  204.             name        window
  205.             style        WINDOW_STYLE_FILLED
  206.             rect        214 394 71 45
  207.             background    "gfx/menus/icons/icon_options_mp"
  208.             backcolor    .20 .25 .11 1
  209.             visible        MENU_TRUE
  210.             decoration
  211.         }
  212.  
  213.         itemDef
  214.         {
  215.             name        options_glow
  216.             group        main_glow_group
  217.             style        WINDOW_STYLE_FILLED
  218.             rect        214 394 71 45
  219.             background    "gfx/menus/icons/icon_options_glow_mp"
  220.             backcolor    .72 .96 .098 1
  221.             visible        MENU_FALSE
  222.             decoration
  223.         }
  224.  
  225.         itemDef
  226.         {
  227.             name        options_button
  228.             group        main_button_group
  229.             style        WINDOW_STYLE_EMPTY
  230.             rect        214 394 71 45
  231.             type        ITEM_TYPE_BUTTON
  232.             visible        MENU_TRUE
  233.             tooltip        "Options"
  234.  
  235.             mouseEnter
  236.             {
  237.                 play "sound/misc/menus/hilite1.wav" ; 
  238.  
  239.                 show options_glow;
  240.             }
  241.             mouseExit
  242.             {
  243.                 hide options_glow;
  244.             }
  245.             action
  246.             {
  247.                 play "sound/misc/menus/select.wav" ; 
  248.  
  249.                 setmenubackground    "gfx/menus/backdrop/menu_multiplayer_back"  
  250.  
  251.                 show main_button_group;                
  252.                 hide options_button;
  253.  
  254.                 hide main_glow_group;
  255.                 show options_glow;
  256.  
  257.                 close mods_menu;
  258.                 close joinserver;
  259.                 close createserver_menu;
  260.                 close violence_menu;
  261.                 close violence_options_menu;
  262.                 open setup_menu;
  263.             }
  264.         }
  265.  
  266.         //////////////////////////////////////////////////////
  267.         // Violence lock
  268.         //////////////////////////////////////////////////////
  269.  
  270.         itemDef
  271.         {
  272.             name        violence_icon
  273.             style        WINDOW_STYLE_FILLED
  274.             rect        282 393 75 45
  275.             background    "gfx/menus/icons/icon_lock_mp"
  276.             backcolor    .20 .25 .11 1
  277.             visible        MENU_TRUE
  278.             decoration
  279.         }
  280.  
  281.         itemDef
  282.         {
  283.             name        violence_glow
  284.             group        main_glow_group
  285.             style        WINDOW_STYLE_FILLED
  286.             rect        282 393 75 45
  287.             background    "gfx/menus/icons/icon_lock_glow_mp"
  288.             backcolor    .72 .96 .098 1
  289.             visible        MENU_FALSE
  290.             decoration
  291.         }
  292.  
  293.         itemDef
  294.         {
  295.             name        violence_button
  296.             group        main_button_group
  297.             style        WINDOW_STYLE_EMPTY
  298.             rect        282 393 75 45
  299.             type        ITEM_TYPE_BUTTON
  300.             visible        MENU_TRUE
  301.             tooltip        "Violence Lock"
  302.  
  303.             mouseEnter
  304.             {
  305.                 play "sound/misc/menus/hilite1.wav" ; 
  306.  
  307.                 show violence_glow;
  308.             }
  309.             mouseExit
  310.             {
  311.                 hide violence_glow;
  312.             }
  313.             action
  314.             {
  315.                 play "sound/misc/menus/select.wav" ; 
  316.  
  317.                 setmenubackground    "gfx/menus/backdrop/menu_multiplayer_back"  
  318.  
  319.                 show main_button_group;                
  320.                 hide violence_button;
  321.  
  322.                 hide main_glow_group;
  323.                 show violence_glow;
  324.  
  325.                 close mods_menu;
  326.                 close setup_menu;
  327.                 close joinserver;
  328.                 close createserver_menu;
  329.                 close violence_options_menu;
  330.                 
  331.                 open  violence_menu;
  332.             }
  333.         }
  334.  
  335.         //////////////////////////////////////////////////////
  336.         // mods
  337.         //////////////////////////////////////////////////////
  338.  
  339.         itemDef
  340.         {
  341.             name        window
  342.             style        WINDOW_STYLE_FILLED
  343.             rect        360 393 55 45
  344.             background    "gfx/menus/icons/icon_modify"
  345.             backcolor    .20 .25 .11 1
  346.             visible        MENU_TRUE
  347.             decoration
  348.         }
  349.  
  350.         itemDef
  351.         {
  352.             name        mods_glow
  353.             group        main_glow_group
  354.             style        WINDOW_STYLE_FILLED
  355.             rect        360 393 55 45
  356.             background    "gfx/menus/icons/icon_modify_glow"
  357.             backcolor    .72 .96 .098 1
  358.             visible        MENU_FALSE
  359.             decoration
  360.         }
  361.  
  362.         itemDef
  363.         {
  364.             name        mods_button
  365.             group        main_button_group
  366.             style        WINDOW_STYLE_EMPTY
  367.             rect        352 393 75 45
  368.             type        ITEM_TYPE_BUTTON
  369.             visible        MENU_TRUE
  370.             tooltip        "Mods"
  371.  
  372.             mouseEnter
  373.             {
  374.                 play "sound/misc/menus/hilite1.wav" ; 
  375.  
  376.                 show mods_glow;
  377.             }
  378.             mouseExit
  379.             {
  380.                 hide mods_glow;
  381.             }
  382.             action
  383.             {
  384.                 play "sound/misc/menus/select.wav" ; 
  385.  
  386.                 setmenubackground    "gfx/menus/backdrop/menu_multiplayer_back"  
  387.  
  388.                 show main_button_group;                
  389.                 hide mods_button;
  390.  
  391.                 hide main_glow_group;
  392.                 show mods_glow;
  393.  
  394.                 close setup_menu;
  395.                 close joinserver;
  396.                 close createserver_menu;
  397.                 close violence_menu;
  398.                 close violence_options_menu;
  399.  
  400.                 open mods_menu;            
  401.             }
  402.         }
  403.  
  404.         //////////////////////////////////////////////////////
  405.         // Quit
  406.         //////////////////////////////////////////////////////
  407.  
  408.         itemDef
  409.         {
  410.             name        window
  411.             style        WINDOW_STYLE_FILLED
  412.             rect        419 394 79 43
  413.             background    "gfx/menus/icons/icon_quit_mp"
  414.             backcolor    .20 .25 .11 1
  415.             visible        MENU_TRUE
  416.             decoration
  417.         }
  418.  
  419.         itemDef
  420.         {
  421.             name        quit_glow
  422.             group        main_glow_group
  423.             style        WINDOW_STYLE_FILLED
  424.             rect        419 394 79 43
  425.             background    "gfx/menus/icons/icon_quit_glow_mp"
  426.             backcolor    .72 .96 .098 1
  427.             visible        MENU_FALSE
  428.             decoration
  429.         }
  430.  
  431.         itemDef
  432.         {
  433.             name        quit_button
  434.             group        main_button_group
  435.             style        WINDOW_STYLE_EMPTY
  436.             rect        419 394 79 43
  437.             type        ITEM_TYPE_BUTTON
  438.             visible        MENU_TRUE
  439.             tooltip        "Quit Game"
  440.  
  441.             mouseEnter
  442.             {
  443.                 play "sound/misc/menus/hilite1.wav" ; 
  444.  
  445.                 show quit_glow;
  446.             }
  447.             mouseExit
  448.             {
  449.                 hide quit_glow;
  450.             }
  451.             action
  452.             {
  453.                 play "sound/misc/menus/select.wav" ; 
  454.  
  455.                 hide quit_glow;
  456.                 open quit_popmenu;
  457.             }
  458.         }
  459.     }
  460. }